package number;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Derived extends Base{
    public int a =30;
    public int c =40;
    public Derived(){
        super(10,20);
        //super();
        System.out.println("Derived");
    }







    public void B(){
        System.out.println("Derived B()....");
    }

    public void A(int d){
        System.out.println("Derived A(int "+d+")....");
    }

    public void C(){
     B();
     super.B();
//     A(10);
//     A();
    }
    public void func() {
        System.out.println(this.a);
        System.out.println(super.a);
//        System.out.println(this.c);
//        System.out.println(this.b);
    }
}
